#include "CBL_PooledObject.h"
#include "CBL_PoolManager.h"

CB_SUBNAMESPACE_START(Memory)

void* CPooledObject::operator new(size_t _Size)
{
	return CPoolManager::CreateInstance().Allocate(_Size);
}

// -------------------------------------------------------------------------

void CPooledObject::operator delete(void* _pObject, size_t _Size)
{
	CPoolManager::GetInstance().Free(_pObject, _Size);
}

CB_SUBNAMESPACE_END